package com.medibooking.gwt.client.gin;

import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Singleton;
import com.medibooking.gwt.client.CalendarApplication;
import com.medibooking.gwt.client.Messages;
import com.medibooking.gwt.client.calendar.views.CalendarView;
import com.medibooking.gwt.client.menu.CalendarOptionsWidget;
import com.medibooking.gwt.client.menu.ToggleCalendarPeriodButtons;

public class GinModule extends AbstractGinModule {

	@Override
	protected void configure() {
		bind(CalendarApplication.class).in(Singleton.class);
		bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
		bind(Messages.class).in(Singleton.class);
		bind(CalendarView.class).in(Singleton.class);
		bind(CalendarOptionsWidget.class).in(Singleton.class);
		bind(ToggleCalendarPeriodButtons.class).in(Singleton.class);
		
	}

}
